package com.tinycloud.miracll.product.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave4;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.AuxiSysWeightBeginMapper;
import com.tinycloud.miracll.product.domain.AuxiSysWeightBegin;
import com.tinycloud.miracll.product.service.IAuxiSysWeightBeginService;

/**
 * 自动加助剂称量开始数据Service业务层处理
 * 
 * @author tiny
 * @date 2022-05-13
 */
@Service
@Slave4
public class AuxiSysWeightBeginServiceImpl implements IAuxiSysWeightBeginService 
{
    @Autowired
    private AuxiSysWeightBeginMapper auxiSysWeightBeginMapper;

    /**
     * 查询自动加助剂称量开始数据
     * 
     * @param projid 自动加助剂称量开始数据主键
     * @return 自动加助剂称量开始数据
     */
    @Override
    public AuxiSysWeightBegin selectAuxiSysWeightBeginByProjid(Long projid)
    {
        return auxiSysWeightBeginMapper.selectAuxiSysWeightBeginByProjid(projid);
    }

    /**
     * 查询自动加助剂称量开始数据列表
     * 
     * @param auxiSysWeightBegin 自动加助剂称量开始数据
     * @return 自动加助剂称量开始数据
     */
    @Override
    public List<AuxiSysWeightBegin> selectAuxiSysWeightBeginList(AuxiSysWeightBegin auxiSysWeightBegin)
    {
        return auxiSysWeightBeginMapper.selectAuxiSysWeightBeginList(auxiSysWeightBegin);
    }

    /**
     * 新增自动加助剂称量开始数据
     * 
     * @param auxiSysWeightBegin 自动加助剂称量开始数据
     * @return 结果
     */
    @Override
    public int insertAuxiSysWeightBegin(AuxiSysWeightBegin auxiSysWeightBegin)
    {
        return auxiSysWeightBeginMapper.insertAuxiSysWeightBegin(auxiSysWeightBegin);
    }

    /**
     * 修改自动加助剂称量开始数据
     * 
     * @param auxiSysWeightBegin 自动加助剂称量开始数据
     * @return 结果
     */
    @Override
    public int updateAuxiSysWeightBegin(AuxiSysWeightBegin auxiSysWeightBegin)
    {
        return auxiSysWeightBeginMapper.updateAuxiSysWeightBegin(auxiSysWeightBegin);
    }

    /**
     * 批量删除自动加助剂称量开始数据
     * 
     * @param projids 需要删除的自动加助剂称量开始数据主键
     * @return 结果
     */
    @Override
    public int deleteAuxiSysWeightBeginByProjids(Long[] projids)
    {
        return auxiSysWeightBeginMapper.deleteAuxiSysWeightBeginByProjids(projids);
    }

    /**
     * 删除自动加助剂称量开始数据信息
     * 
     * @param projid 自动加助剂称量开始数据主键
     * @return 结果
     */
    @Override
    public int deleteAuxiSysWeightBeginByProjid(Long projid)
    {
        return auxiSysWeightBeginMapper.deleteAuxiSysWeightBeginByProjid(projid);
    }
}
